VERSION 5.00
Object = "{2B16AE89-350D-4A56-A3E2-A46C22F5FFD6}#9.0#0"; "UniDataGrid.ocx"
Begin VB.Form frmSQLServer 
   Caption         =   "Connect to SQL Server"
   ClientHeight    =   5070
   ClientLeft      =   120
   ClientTop       =   450
   ClientWidth     =   8700
   LinkTopic       =   "Form1"
   ScaleHeight     =   5070
   ScaleWidth      =   8700
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text4 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   345
      Left            =   165
      TabIndex        =   10
      Text            =   "Select * from sysfiles"
      Top             =   4230
      Width           =   5655
   End
   Begin VB.CommandButton cmdConnect 
      BackColor       =   &H00F0F0F0&
      Caption         =   "Connect"
      Height          =   375
      Left            =   6390
      TabIndex        =   9
      Top             =   3585
      Width           =   1665
   End
   Begin VB.TextBox Text3 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   345
      Left            =   3915
      TabIndex        =   8
      Top             =   3795
      Width           =   1905
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   345
      Left            =   990
      TabIndex        =   5
      Text            =   "root"
      Top             =   3795
      Width           =   1905
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   345
      Left            =   3915
      TabIndex        =   4
      Text            =   "tempdb"
      Top             =   3360
      Width           =   1905
   End
   Begin VB.TextBox txtServer 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   345
      Left            =   990
      TabIndex        =   1
      Text            =   "."
      Top             =   3360
      Width           =   1905
   End
   Begin UniDataGrid.UniGrid UniGrid1 
      Height          =   3195
      Left            =   105
      TabIndex        =   0
      Top             =   75
      Width           =   8460
      _ExtentX        =   14923
      _ExtentY        =   5636
      BeginProperty FontHeader {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty FontCell {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColorHeader =   0
      ForeColorCell   =   0
      RowHeight       =   40
      Connect         =   1
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackColor       =   &H00F0F0F0&
      Caption         =   "Password:"
      ForeColor       =   &H00000000&
      Height          =   195
      Left            =   3045
      TabIndex        =   7
      Top             =   3840
      Width           =   735
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackColor       =   &H00F0F0F0&
      Caption         =   "Username:"
      ForeColor       =   &H00000000&
      Height          =   195
      Left            =   135
      TabIndex        =   6
      Top             =   3825
      Width           =   765
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackColor       =   &H00F0F0F0&
      Caption         =   "Database  :"
      ForeColor       =   &H00000000&
      Height          =   195
      Left            =   3045
      TabIndex        =   3
      Top             =   3405
      Width           =   825
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H00F0F0F0&
      Caption         =   "Server :"
      ForeColor       =   &H00000000&
      Height          =   195
      Left            =   135
      TabIndex        =   2
      Top             =   3390
      Width           =   555
   End
End
Attribute VB_Name = "frmSQLServer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdConnect_Click()
    With UniGrid1
        .SQL = Text4.Text
        .ConnectToSQLServer txtServer.Text, Text1.Text, Text2.Text, Text3.Text
        .AutoRetrieveField
        .ReScrollbar
    End With
End Sub

Private Sub Form_Unload(Cancel As Integer)
    frmStart.Show
End Sub
